package com.filldream.sun.bean.wxuser;

/**
 * 微信基本返回参数
 * @author RickSun
 */
public class BaseResult {
    private static final String SUCCESS_CODE = "0";
    private String errcode;
    private String errmsg;

    public BaseResult() {
    }

    public BaseResult(String errcode, String errmsg) {
        this.errcode = errcode;
        this.errmsg = errmsg;
    }

    public String getErrcode() {
        return this.errcode;
    }

    public void setErrcode(String errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return this.errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public boolean isSuccess() {
        return this.errcode == null || this.errcode.isEmpty() || this.errcode.equals("0");
    }
}